package com.rc.saas.mini.common.constant;

public interface CommonConstant {
    // 常量
     String CONSTANT_STRING_GET = "get";
     String CONSTANT_STRING_SET = "set";
     String CONSTANT_STRING_STATUS = "status";
     String CONSTANT_STRING_MESSAGE = "message";
     String CONSTANT_STRING_RESULT = "result";
     String CONSTANT_STRING_INT = "int";
     String CONSTANT_STRING_VARCHAR = "varchar";
     String CONSTANT_STRING_DATETIME = "datetime";
     String CONSTANT_STRING_FLOAT = "float";
     String CONSTANT_STRING_DOUBLE = "double";
     String CONSTANT_STRING_LONGTEXT = "longtext";

    // 编码
     String ENCORD_UTF8 = "utf-8";
     String ENCORD_ISO_8859_1 = "iso-8859-1";

    // 公用返回码
     String SUCCESS_CODE_200 = "200";
     String SUCCESS_CODE_300 = "300";
     String FAIL_CODE_400 = "400";

    //用户余额不足，请充值后再充电
     String FAIL_CODE_401 = "401";
    //上次订单还没结算完，请稍等
     String FAIL_CODE_402 = "402";

     String EXCEPTION_CODE_500 = "500";
     String EXCEPTION_CODE_600 = "600"; // session过期

    // 通用提示信息
     String MSG_SUCCESS = "操作成功";
     String MSG_FAIL = "操作失败";
     String MSG_EXCEPTION = "操作异常";
     String MSG_EXCEPTION_POPUP = "系统错误，请稍后再试";
     String MSG_NO_LOGIN = "请先登录";
     String MSG_LOGIN_NAME_EMPTY = "登录名为空";
     String MSG_EXECUTE_SUCCESS = "执行成功";
     String MSG_FIND_SUCCESS = "查询成功";
     String MSG_FIND_FAIL = "查询失败";
     String MSG_ADD_SUCCESS = "添加成功";
     String MSG_ADD_FAIL = "添加失败";
     String MSG_UPDATE_SUCCESS = "修改成功";
     String MSG_UPDATE_FAIL = "修改失败";
     String MSG_DELETE_SUCCESS = "删除成功";
     String MSG_DELETE_FAIL = "删除失败";
     String MSG_DATA_EXCEPT = "数据异常";
     String MSG_PARAMETER_EMPTY = "参数为空";
     String MSG_PARAMETER_ERROR = "参数错误";
     String MSG_INPUT_NOEMPTY = "输入不能为空";
     String MSG_INPUT_FORMAT_ERROR = "输入格式不正确";
     String MSG_BATCH_ERROR = "批量处理出现错误";
     String MSG_UPDATE_PEMMISSION_FAIL = "您没有修改权限";
    // 下载
     String MSG_DOWNLOAD_ERROR = "下载出现错误";

    // 账号
     String MSG_USER_NOEXIST_ERROR = "用户不存在";
     String MSG_LOGINNAME_EXIST_ERROR = "此用户名已存在";
     String MSG_LOGINNAME_FORMAT_ERROR = "用户名必须由6-20位的字母和数字组成";
     String MSG_LOGINNAME_FIRST_ERROR = "用户名首位必须是字母";

    // 密码
     String MSG_PASSWORD_FORMAT_ERROR = "密码必须由6-20位的字母，数字组成";
     String MSG_PASSWORD_EXIST_SPECIAL_ERROR = "密码中不能存在特殊字符";
     String MSG_LOGINNAME_PASSWORD_NULL_ERROR = "账号或密码不能为空";
     String MSG_PASSWORD_ERROR = "登录密码错误！";
     String MSG_ANSWER_ERROR = "答案错误！";
     String MSG_CODE_ERROR = "验证码错误！";

    // 修改密码
     String MSG_UPDATE_PASSWORD_SUCCESS = "修改密码成功";
     String MSG_UPDATE_PASSWORD_FAIL = "修改密码失败";
     String MSG_UPDATE_PASSWORD_OLD_ERROR = "旧密码输入错误";
     String MSG_UPDATE_PASSWORD_SAMEPASSW_ERROR = "您设置的新密码和旧密码相同";

    // 权限类型
     String PERMISSION_TYPE_MENU = "0";
     String PERMISSION_TYPE_FRONT = "1";
     String PERMISSION_TYPE_OPT = "2";

    // 角色
     String MSG_ROLE_EXCEPTION = "不存在角色";
    // 评论
     String MSG_COMMENT_FAIL = "评论或回复失败";

    // 点赞
     String MSG_DOLIKE_REPEAT_FAIL = "您已经点过赞罗";
     String MSG_DOLIKE_FAIL = "点赞失败";

    // 收藏
     String MSG_FAVORITES_SUCCESS = "收藏成功";
     String MSG_MSG_FAVORITES_EXIST_FAIL = "收藏列表已存在相关信息";
     String MSG_MSG_FAVORITES_FAIL = "收藏失败";

     String MSG_FAVORITES_DELETE_SUCCESS = "已成功取消收藏";
     String MSG_FAVORITES_DELETE_FAIL = "无法取消收藏";

    // 活动
     String MSG_ACTIVITY_TIME_ERROR = "操作失败，起始时间必须小于截止时间";
     String MSG_ACTIVITY_ENROLL_TIME_ERROR = "操作失败，报名时间与活动时间的配置有误";
     String MSG_ACTIVITY_ENROLL_FAIL = "报名失败";
     String MSG_ACTIVITY_ENROLL_SUCCESS = "报名成功";

    // 举报
     String MSG_REPORT_SUCCESS = "举报成功";
     String MSG_REPORT_FAIL = "举报失败";
     String MSG_REPORT_LENGTH_FAIL = "举报原因必须由5-50个字构成";
     String MSG_REPORT_REPEAT_FAIL = "您已提交过该举报信息，系统会尽快处理";

    /**
     * 后台用户类型：超级管理员
     */
     String USER_TYPE_ADMIN = "1";
    /**
     * 后台用户类型：企业用户
     */
     String USER_TYPE_ENTERPRISE = "2";
    /**
     * 后台用户类型：分账用户
     */
     String USER_TYPE_COOPERATION = "3";
}
